
<?php
session_start();
require_once '../models/Product.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>List Model</title>
<?php include '../admin/_meta.php';
?>
</head>
<body>

	<div id="firstLine">
		<div id="top-bar">
		<?php include '_top_bar_admin.php';?>
		</div>
	</div>
	<div id="container">
		<div id="header">
			<?php include '_menu_admin.php';?>
		</div>
		<div id="center">
			<div id="table-user">
				<div>
				<form>
					<table id="table-admin">
						<tr>
							<td colspan="2"><b>Add Model</b></td>
						</tr>
						<tr>
							<td><span>Brand Name</span></td>
							<td><select id="brandID" name="brandID">
							<option value="null">All Brands:</option>
							<?php Product::printBrandDrop('');?></select></td>
						</tr>
						<tr>
							<td><span>Model Name</span></td>
							<td><input type="text" id="modelName" name="modelName"></td>
						</tr>
						<tr>
							<td><input type="button" name="btn_submit" value="Add Model" class="btn_submit" onclick="addModel();"></td>
							<td><a href="list_product.php"><input type="button" name="reset" value="Cannel" class="btn_submit"></a></td>
						</tr>
					</table>
				</form>
				</div>
					<div class="clear-both"></div>
					<div class="view-content">
						<div class="loading-container">
							<span class="loading-image" id="submit-loading"></span>
						</div>
						<div class="ajax-content" id="model-div">
							<?php Product::printModelTable('');?>
						</div><br/>				
					</div>	
			</div>
			</div>
		</div>
	</div>
	</div>
	<div>
		<?php include '_footer_admin.php';?>
	</div>

</body>
</html>